﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using System.Text;
using Microsoft.AspNetCore.Http;

namespace chihuopig.Web.Web.Controllers
{
    public class TestSessionController : WebViewController
    {
        public IActionResult Index()
        {
            //HttpContext.Session.SetString("key", "strValue");
            ViewBag.SessionId = HttpContext.Session.Id;
            ViewBag.Session = HttpContext.Session.GetString("key");
            return View();
        }
    }
}